/**
* ...
* @author Default
* @version 0.1
*/

package bdz.physics.objects {
	import bdz.physics.utils.Vector;
	import flash.display.Sprite;

	public class AbstractElement extends Sprite {
		
		protected var mass:Number;
		protected var cent:Vector;
		protected var verts:Array;
		protected var axis:Array;
		
		function AbstractElement(abs:AbstractRestriction) {
			if (abs == null) {
				throw new Error("Error. Tried to instantiate an abstract class");
			}
			
		}
		protected function getRestriction():AbstractRestriction {
			return new AbstractRestriction();
		}
		public function get vertices():Array {
			return verts;
		}
		public function get axes():Array {
			return axis;
		}
		public function get center():Vector {
			return cent;
		}
	}
	
}
class AbstractRestriction { };